import request from '@/utils/request2'

export function page(data) {
  return request({
    url: '/qt-config/page',
    method: 'get',
    params: data
  })
}

export function getTree() {
  return request({
    url: '/qt-config/getTree',
    method: 'get'
  })
}

export function removes(data) {
  return request({
    url: `/qt-config/dels?${data}`,
    method: 'get'
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/qt-config',
    method: 'post',
    data
  })
}

export function getDetail(data) {
  return request({
    url: `/qt-config/one/${data}`,
    method: 'get'
  })
}
